import request from '@/utils/request'

// 查询农机库列表
export function listNongji(query) {
  return request({
    url: '/wuyi/nongji/list',
    method: 'get',
    params: query
  })
}

// 查询农机库详细
export function getNongji(id) {
  return request({
    url: '/wuyi/nongji/' + id,
    method: 'get'
  })
}

// 新增农机库
export function addNongji(data) {
  return request({
    url: '/wuyi/nongji',
    method: 'post',
    data: data
  })
}

// 修改农机库
export function updateNongji(data) {
  return request({
    url: '/wuyi/nongji',
    method: 'put',
    data: data
  })
}

// 删除农机库
export function delNongji(id) {
  return request({
    url: '/wuyi/nongji/' + id,
    method: 'delete'
  })
}
